import http from "@/utils/request";

export default {
  /**
   *查询铁矿石列表
   */
  async findIconoreList(params) {
    return http.get("/api/iconore/list", params);
  },
  /**
   * 同步请求
   */
  findIconoreList(params) {
    return http.get("/api/iconore/list", params);
  },

  /**
   * 查询被选择的铁矿石
   */
  async listIsSelected(params) {
    return http.get("/api/iconore/listIsSelected", params);
  },

  /**
   *添加原料
   */
  async addIconore(params) {
    return http.post("/api/iconore/add", params);
  },

  /**
   *修改原料
   */
  async updateIconore(params) {
    return http.put("/api/iconore/update", params);
  },

  /**
   *删除原料
   */
  async deleteIconore(params) {
    return http.delete("/api/iconore/delete", params);
  },

  /**
   *更新选择选项
   */
  async updateIsSelected(params) {
    return http.put("/api/iconore/updateIsSelected", params);
  },
};
